﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<ModelNameValue<string,string>>" %>
<% Func<string, string> sp = p =>
   {
       var tp = p.Split(',');
       p = string.Format("{0}<br/>{1}", string.Join(",", tp.Take(tp.Length / 2).ToArray()), string.Join(",", tp.Skip(tp.Length / 2).ToArray()));
       return p;
   };
%>
<table width="100%" class="table" id="tb_opencode_history">
    <tbody>
        <tr class="th">
            <th colspan="2">
                历史开奖号码 
            </th>
        </tr>
        <tr>
            <td>
                期号
            </td>
            <td>
                号码
            </td>
        </tr>
        <%foreach (var item in Model)
          {%>
        <tr>
            <td>
                <%=item.Key %>
            </td>
            <td>
                <%=item.Value.Length>10?sp(item.Value):item.Value %>
            </td>
        </tr>
         <% } %>
         <tr>
            <td colspan='2' align="right"><%=Html.ActionLink("更多>>", "More", "Play", new { id = (Code.Models.LotteryType)ViewData["LotteryID"] }, new { @class = "a_blue" })%></td>
         </tr>
    </tbody>
</table>
